/*
 * @Author: chentao
 * @Date: 2021-08-25 10:39:46
 * @Last Modified by: chentao
 * @Last Modified time: 2021-08-25 10:43:07
 */
import React, {
  useContext,
  useCallback,
  useRef,
  RefObject,
  useMemo,
} from 'react';
import NavBar from '../hookComponents/navbar/NavBar';
import Message from './message/Message';
import context from '../createContext';
const { ContainerContext, MessageContext } = context;
function UserContextHook() {
  const userContainer = useContext(ContainerContext);

  return (
    <ContainerContext.Provider value={userContainer}>
      <NavBar />
      <Message />
    </ContainerContext.Provider>
  );
}
export default UserContextHook;
